<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Mutation Class Report - ${coverage.fqName}</title>
		<link title="Style" type="text/css" rel="stylesheet" href="css/main.css"/>
	</head>
	<body>
		<h5>Mutation Class Report - ${coverage.fqName}</h5>
		<div class="separator">&nbsp;</div>

		<#assign percKilled = 100 * coverage.coverage >		
		<#assign percSurv = 100 - percKilled >		


		<table class="report">
			<thead>
				<tr>
				  <td class="heading">Classes in this File</td>  
				  <td class="heading" width="20%">Mutation Coverage</td>
				</tr>
			</thead>

			<tr>
				<td class="text"><a href="">${coverage.fqName}</a></td>
				<td class="value">
					<table cellpadding="0" cellspacing="0" align="right">
						<tr>
							<td>${percKilled}%&nbsp;</td>
							<td>
								<table class="percentGraph" cellpadding="0" cellspacing="0" width="100">
									<tr>
										<td class="covered" width="${percKilled}"></td>
										<td class="uncovered" width="${percSurv}"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		<p>
		

		<table>
			<tr>
				<td>Mutants:</td><td>${coverage.numMutants}</td>
				<td>Survivors:</td><td>${coverage.numSurvivors}</td>
				<td>Coverage:</td><td>${percKilled}%</td>
			</tr>
		</table>
		
		<table>
			<th>Test Names</th>
			<#list clazz.executedTests as test >
			<tr>
				<td class="text">${test}</td>
			</tr>
			</#list>
		</table>
		<table>
			<th>Mutant</th>
			<th>Line No</th>
			<th>Killed</th>
			<th>Killer Tests</th>
			
			<#list clazz.getMutant() as mutant >
				<#assign killed = (! mutant.isSurvived() ) >
			<tr>
				<td class="text">${mutant.name!"NoName"} ${mutant.transition} ${mutant.transitionGroup}</td>
				<td class="text">${mutant.baseSourceLine}</td>
				<td class="text"><#if killed>Y<#else>N</#if></td>
				<td class="text">
				<#list mutant.killerTests as test>
					${test}<br/>
				</#list>
				</td>
			</tr>
			</#list>
		</table>
	</p>





		<div class="separator">&nbsp;</div>
		<table cellspacing="0" cellpadding="0" class="src">
		<#list sourceInfo as sourceLine>

			<#assign line =  sourceLine.text?replace(" ","&#160;") >
			<#assign line = line?replace("\t","&#160;&#160;") >
			<#if sourceLine.mutantInfo??  >
		
			
				<#list sourceLine.mutantInfo as mutant >
					<#if mutant.isSurvived() >
					<tr>
			  			<td class="numLineSurvived">&nbsp;${sourceLine.lineNo}</td>
			  			<td class="src"><pre class="src"><span class="srcUncovered"><a title="${mutant.name!"NoName"}: ${mutant.transition} ${transitionsDescription.getString(mutant.transition)}">&nbsp;${line}</a></span></pre></td>
					</tr>
					<#else>
					<tr>
			  			<td class="numLineCover">&nbsp;${sourceLine.lineNo}</td>
			  			<td class="src"><pre class="src"><span class="srcCovered"><a title="${mutant.name!"NoName"}: ${mutant.transition} ${transitionsDescription.getString(mutant.transition)} KillerTests: <#list mutant.killerTests as test>${test} </#list> ">&nbsp;${line}</a></span></pre></td>
					</tr>
						
					</#if>
				</#list>
			<#else>
			<tr>
			  <td class="numLine">&nbsp;${sourceLine.lineNo}</td>
			  <td class="src"><pre class="src">&nbsp;${line}</pre></td>
			</tr>
			</#if>
		</#list>

		</table>
		<div class="footer">
			Reports generated by <a href="http://carma.retroduction.com/" target="_top">Carma</a>.
		</div>
	</body>
</html>
